package com.photo.service;

import com.photo.dao.UserDao;
import com.photo.dao.domain.User;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 2008-8-4
 * Time: 15:34:32
 * To change this template use File | Settings | File Templates.
 */
public class UserService /*extends BaseFactory*/ {
    UserDao userDao; //= (UserDao) BaseFactory.getInstance().getBean("userDao");

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public Integer insertUser(User user) {
      return  userDao.insertUser(user);
    }

    public List queryUser(User user) {
        return userDao.queryUser(user);
    }

    public void updateUser(User user) {
        userDao.updateUser(user);
    }
}
